#if !defined(AFX_DBHELPER_H__6B1E1C8E_4E72_4ABC_BC1D_722C49463D5C__INCLUDED_)
#define AFX_DBHELPER_H__6B1E1C8E_4E72_4ABC_BC1D_722C49463D5C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif

#include "lib\AdoClass220_src\ado2.h"
#include "keyvalue.h"

class CDBHelper  
{
public:
	BOOL ExecuteNonQuery(CString cmdText);
	BOOL IsExist(CString sql);
	CKeyValue GetListByKw(CString kw);
	CDBHelper();
	virtual ~CDBHelper();
private:
	CString m_strAppRoot;
	CString m_strConnection;
	CADODatabase m_pDb;
	CADORecordset m_pRs;
};

#endif